<template>
	<view>
		<image class="img_box" :src="item" mode="widthFix" v-for="(item,cIndex) in imgList" :key="cIndex"></image>
	</view>
</template>

<script>
	import {medalWallList} from '@/api/wallet.js'
	export default {
		data() {
			return {
				index:0,//数组下标
				imgList:[],
			}
		},
		onLoad(e) {
			this.index = e.index
			this.getMedalWallList()
		},
		methods: {
			// 获取勋章墙信息
			async getMedalWallList() {
				var res = await medalWallList()
				this.imgList = res.result.medalList[this.index].cardImgList
			},
		}
	}
</script>

<style>
	.img_box{
		width: 100%;
	}
</style>
